package com.adun.springsecuritybase.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zhudunfeng
 * @date 2021/6/24 17:35
 */
@Controller
public class LoginController {

    /**
     * 登录 to 主页面
     * @return
     */
    @RequestMapping("/login")
    public String login(){
        return "redirect:main.html";
    }

}

